#pragma once
#include "Object2D.h"

namespace Pulpy
{
	class Tile : public Object2D
	{
	private:
		unsigned short _Type;
		int _Row;
		int _Col;
	public:
		Tile():_Type(0), Object2D() { };
		Tile(unsigned short type, int width, int height): _Type(type), Object2D(width, height) { }
		void setArea(int r, int c) { _Row = r; _Col = c; }
		void setType(unsigned short type) { _Type = type; }
		int getType() { return _Type; }
		int getRow() { return _Row; }
		int getCol() { return _Col; }
		void draw(float minX = 0, float minY = 0, float maxX = 1, float maxY = 1);
	};
}